[1] 2
From the very basics
Introduction of R and RStudio
Analyzing your own data
Did you all manage to install both R and RStudio?
Rstudio windows
Now, you can download, save and open the “follow_along_script_monday_morning.R”
“#” can be use to add text and comments
Why could this be helpful?
How to access an element in the vector
How to access an element from a matrix
Can you calculate the following for “a_vector”?
Take 15 minutes to try
Can you figure out what you can do with the following functions?
Take 10 minutes
Numeric and character
Logical
factor
Lists
Helpful for plotting –> we come back to this later
Get access to specific set of functions
run “library()” every time you want to use any function from this package
Let’s try!
project_dir
Choose your working directory
A “path” tells R where it can find your data
tibble / dataframe / matrix / array